<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('server/index')}">服务器列表</a></li>
			<li class="active"><a href="#A" data-toggle="tab">编辑服务器</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('server/doPost')}" method="post">
			<fieldset>
				
                    <div class="form-group">
                        <label for="input-score" class="col-sm-2 control-label">ID</label>
                        <div class="col-md-6 col-sm-10">
                            <input type="text" class="form-control" id="input-score" name="serverid" value="{$serverid|default=''}">
                            <p class="help-block">服务器ID</p>
                        </div>
                    </div>
                    <div class="tab-pane active" id="A">
							<div class="form-group">
								<label for="input-site-name" class="col-sm-2 control-label"><span class="form-required">*</span>服务器名称</label>
								<div class="col-md-6 col-sm-10">
									<input type="text" class="form-control" id="input-site-name" name="servername" value="{$servername|default=''}">
								</div>
							</div>							
                    </div>
                    <div class="form-group">
                        <label for="input-rul" class="col-sm-2 control-label">GateWay URL</label>
                        <div class="col-md-6 col-sm-10">
                            <input type="text" class="form-control" id="input-rul" name="serverurl" value="{$serverurl|default=''}">
                            <p class="help-block">服务器接口地址</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="input-sec" class="col-sm-2 control-label">交付密钥</label>
                        <div class="col-md-6 col-sm-10">
                            <input type="text" class="form-control" id="input-sec" name="serversec" value="{$serversec|default=''}">
                            <p class="help-block">32</p>
                        </div>
                    </div>
					<div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <input type="hidden" name="id" value="{$id|default=0}">
                            <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
                            <a class="btn btn-default" href="{:url('server/index')}">{:lang('BACK')}</a>
                        </div>
                    </div>
				
			</fieldset>
		</form>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>